//
//  ViewController.m
//  11-xib登录页面
//
//  Created by dllo on 16/7/28.
//  Copyright © 2016年 YMJ. All rights reserved.
//

#import "ViewController.h"
#import "ZhuCeLagouViewController.h"
#import "YanzhengshoujiViewController.h"

@interface ViewController ()
- (IBAction)zhucelagou:(id)sender;
- (IBAction)wangjimima:(id)sender;

@end

@implementation ViewController

- (void)viewDidLoad {
    [super viewDidLoad];
    // Do any additional setup after loading the view, typically from a nib.
}

- (void)didReceiveMemoryWarning {
    [super didReceiveMemoryWarning];
    // Dispose of any resources that can be recreated.
}

- (IBAction)zhucelagou:(id)sender {
    [self presentViewController:[ZhuCeLagouViewController new] animated:NO completion:^{
        
        
    }];

}

- (IBAction)wangjimima:(id)sender {
    YanzhengshoujiViewController *yanzhengshoujiVC = [[YanzhengshoujiViewController alloc] init];
    CATransition *animation = [CATransition animation];
    animation.timingFunction = UIViewAnimationCurveEaseInOut;
    animation.duration = 0.3;
    animation.type = kCATransitionPush;
    animation.subtype = kCATransitionFromRight;
    [self.view.window.layer addAnimation:animation forKey:@"尼玛"];
    [self presentViewController:yanzhengshoujiVC animated:NO completion:^{
        
        
    }];
}
@end
